<template>
  <iframe :src="src" class="iframe" :style="{height: height + 'px'}"></iframe>
</template>
<style lang="scss">
  .iframe {
    width: 750px;
  }
</style>
<script>
export default {
  props: {
    src: {default: ''}
  },

  data () {
    return {
      height: 1330
    }
  },
  components: {},
  created () {
    this.height = weex.config.env.deviceHeight * 750 / weex.config.env.deviceWidth
    this.src = this.src.replace('.js', '.html')
  },
  mounted () {},
  methods: {}
}
</script>
